<div class="left_part">

<div class="well" style="padding: 8px 0; background: #fff;">
<ul class="nav nav-list">
  <li class="<%=getCateClass('new')%>"><a href="/doc/new?cateid=<%=params[:cateid]%>"><i class="icon-pencil"></i> 新建文档</a></li>
  <li><a href="javascript:void(cateConf());"><i class="icon-move"></i> 类别配置</a></li>
  <li class="<%=getCateClass('list/all')%>"><a href="/doc"><i class="icon-th-list"></i> 所有类别</a></li>
  <li class="divider"></li>
  <% session[:user].doccategorys.find(:all, :order=>'sortid asc').each do |cate| %>
  <li class="<%=getCateClass('list/' + cate.id.to_s + '/')%>"><a href="/doc/list/<%=cate.id%>/"><%=cate.name%></a></li>
  <% end %>
</ul>
</div>

	<div class="head">赞助商链接</div>
	<div style="text-align:center; padding-top:1px; margin-left:-3px;">
<script type="text/javascript">
/*180*150，创建于2013-3-19*/
var cpro_id = "u1238872";
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>
	</div>
</div>


<div class="modal" id="myModal" style="display:none;">
  <div class="modal-header">
    <a class="close" data-dismiss="modal">×</a>
    <h3>类别配置</h3>
  </div>
  <div class="modal-body" name="cateiframe">
  </div>
  <div class="modal-footer">
    <a href="#" class="btn" data-dismiss="modal">关闭窗口</a>
  </div>
</div>

<script type="text/javascript">
$().ready(function(){
	$('#myModal').modal({
	    backdrop:true,
	    keyboard:true,
	    show:false
	});
});
function cateConf() {
	$('div[name=cateiframe]').html('<iframe src="/doc/cate" style="width:100%; height:420px;" frameborder="0" scrolling="no"></iframe>');
	$('#myModal').modal('toggle');
}
</script>
